<div class="layui-tab-item">
    <table class="layui-table" lay-data="{width: 892, height:480, url:'${ctx}/user/teacher/gradeList', page:true, id:'myPublistList'}" lay-filter="myPublistListFilter">
        <thead>
        <tr>
            <th lay-data="{field:'name', templet: '#myPublistTitleTpl'}">班级名称</th>
            <th lay-data="{field:'solved', width:80,templet: '#solvedTpl'}">分享码</th>
            <th lay-data="{field:'createDate', width:180}">创建时间</th>
            <!--<th lay-data="{field:'Count', width:100}">加入人数</th>-->
            <th lay-data="{fixed: 'right', width:178, align:'center', toolbar: '#myPublistListOptBar'}"></th>
        </tr>
        </thead>
    </table>
    <script type="text/html" id="myPublistTitleTpl">
        <a>{{d.name}}</a>
    </script>
    <script type="text/html" id="solvedTpl">
        {{#  if(d.solved === 1){ }}
        是
        {{#  } else { }}
        否
        {{#  } }}
    </script>
    <script type="text/html" id="myPublistListOptBar">
        <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">分享码</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    </script>
</div>